package camel.dsrawat.examples;

import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.impl.DefaultCamelContext;

public class FileCopyRouter extends RouteBuilder {

	@Override
	public void configure() throws Exception {
		from("file://c:/export/mail/in?noop=true").to(
				"file://c:/export/mail/logComplete");
	}

	public static void main(String[] args) throws Exception {
		CamelContext context = new DefaultCamelContext();
		FileCopyRouter router = new FileCopyRouter();
		context.addRoutes(router);

		context.start();
		Thread.sleep(10000);
		context.stop();
	}
	

}
